package com.example.base.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

data class DetailEntityResult(
    val code: Int,
    val `data`: DetailEntity,
    val message: String
)
@Entity(tableName = "goods_info")
data class DetailEntity(
    //val bannerList: List<String>?,
    val category_id: Int,
    val goods_attribute: String,
    val goods_banner: String,
    val goods_code: String,
    val goods_default_icon: String,
    val goods_default_price: Int,
    val goods_desc: String,
    val goods_detail_one: String,
    val goods_detail_two: String,
    val goods_sales_count: Int,
    val goods_stock_count: Int,
    @PrimaryKey
    val id: Int,
    var type:Int//当type=1   观看过的   当type为2   收藏的数据
)